import { get, post } from './requestApi'

const BASE_URL = '/api/sysConfig/'

const API_URL = {
  GET_SYSCONFIG_LIST: 'getSysConfigList',  //  列表
  UPDATE_SYSCONFIG: 'updateSysConfig' //  修改
  
}

for (const i in API_URL) {
  API_URL[i] = BASE_URL + API_URL[i]
}

/**
 * 列表
 * @param query
 * @returns {AxiosPromise}
 * @constructor
 */
export function getSysConfigList(query) {
  return get(API_URL.GET_SYSCONFIG_LIST, query)
}

/**
 * 修改
 * @param data
 * @returns {AxiosPromise}
 */
export function updateSysConfig(data) {
  return post(API_URL.UPDATE_SYSCONFIG, data)
}
